package com.example.rbac.exception;

import lombok.Getter;
/**
 * 自定义异常类
* */
@Getter
public class CustomException extends RuntimeException {
    private int code;
    private String message;
    
    public CustomException(String message) {
        super(message);
        this.code = 500;
        this.message = message;
    }
    
    public CustomException(int code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }
}